package cn.buddha.jec.handler.pre;

import cn.buddha.jec.flowable.handler.business.IBusinessPreHandler;
import cn.buddha.jec.model.TongBaseRequest;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

/**
 * @ClassName PreFirstHandler
 * @Author 友野浩二
 * @Date 2020/4/21 14:51
 * @Description 业务前置一(组件默认有效)
 * @Version 1.0
 */
@Component
@Slf4j
public class PreFirstHandler implements IBusinessPreHandler {

    @Override
    public void beforeExecute(TongBaseRequest tongBaseRequest) {
        log.info("我是你的业务前置老大爷!!!");
    }

    @Override
    public int getOrder() {
        return 0;
    }

    @Override
    public String getComponentName() {
        return "服务流程前置测试一";
    }
}
